{php $pk = dr_string2array($t.pk_shuxing);}
{php $pkbiaoku = '1_quan_form_son_pk';}
<div class="d-shang-15" >
	<div class="d-kuan">
		<div>

			<div class="row" id="d-tupian-pk-{$t.id}">
				<div class="col-md-12 d-buhuanhang">
					<div class="baifen-50-500 liebiaotu-zuo-500 xia-10 a">
						<a href="{dr_son_url($t)}"><img src="{dr_thumb($t.lanfang)}" class="img-fluid yinying d-kuan"></a>
					</div>
					<div class="kuan-5"></div>
					<div class="baifen-50-500 liebiaotu-you-500 xia-10 a">
						<a href="{dr_son_url($t)}"><img src="{dr_thumb($t.hongfang)}" class="img-fluid yinying d-kuan"></a>
					</div>
				</div>
			</div>
			<!---->
			
			{php $yipk = \Phpcmf\Service::M()->db->table('1_quan_form_son_pk')->where('cid', $t.id)->where('uid', $member.id)->get()->getRowArray();}
			{if $yipk}
			<div class="row d-xia-10">
				<div class="col-md-12 d-buhuanhang d-quxian-0">
					<a href="{dr_son_url($t)}" class="d-yuanjiao-zuo-20-20" style="width:{if $pk['lanfangbili']}{$pk['lanfangbili']}{else}50{/if}%;height: 30px;background-color: #91bed5;color: #ffffff;">
					<div>
						<span class="d-zuo-10" style="line-height: 27px;">{if $pk['lanfangtongji']}{$pk['lanfangtongji']}{else}0{/if}</span>
						<span class=" d-wenzi-12"  style="line-height: 27px;">位</span>
						{if $yipk['pkfang'] == 1}
						    <img src="{dr_avatar($yipk['uid'])}" class="d-yuanjiao-50 d-you-5" width="22" height="22" style="background-color: #ffffff;"/>
						{/if}
					</div>
					</a>
					<div class="d-wenzi-juzhong" style="width:31px;height: 30px;background-color: #ffffff;color: #ffffff;background-image:url('{HOME_THEME_PATH}web/img/pk.png');">
						<!--img src="{HOME_THEME_PATH}web/img/pk.png"-->
					</div>
					<a href="{dr_son_url($t)}" class="d-yuanjiao-you-20-20 d-wenzi-you" style="width:{if $pk['hongfangbili']}{$pk['hongfangbili']}{else}50{/if}%;height: 30px;background-color: #f1785a;color: #ffffff;">
					<div>
						
						{if $yipk['pkfang'] == 2}
						    <img src="{dr_avatar($yipk['uid'])}" class="d-yuanjiao-50 d-you-5" width="22" height="22" style="background-color: #ffffff;"/>
						{/if}
						<span class=""  style="line-height: 27px;">{if $pk['hongfangtongji']}{$pk['hongfangtongji']}{else}0{/if}</span>
						<span class="d-wenzi-12 d-you-10"  style="line-height: 27px;">位</span>
					</div>
					</a>
				</div>
			</div>
			
			{else}
				{if $member}
					<div class="row d-xia-10">
						<div class="col-md-12 d-buhuanhang d-quxian-0">
							<a href="{dr_son_url($t)}" class="tag_lan d-yuanjiao-zuo-20-20" style="width:{if $pk['lanfangbili']}{$pk['lanfangbili']}{else}50{/if}%;height: 30px;background-color: #91bed5;color: #ffffff;">
							<div>
								<span class="d-zuo-10 d-hanggao-30">{if $pk['lanfangtongji']}{$pk['lanfangtongji']}{else}0{/if}</span>
								<span class="d-hanggao-30 d-wenzi-12">位</span>
							</div>
							</a>
							<div class="d-wenzi-juzhong" style="width:31px;height: 30px;background-color: #ffffff;color: #ffffff;background-image:url('{HOME_THEME_PATH}web/img/pk.png');">
								<!--img src="{HOME_THEME_PATH}web/img/pk.png"-->
							</div>
							<a href="{dr_son_url($t)}" class="tag_hong d-yuanjiao-you-20-20 d-wenzi-you" style="width:{if $pk['hongfangbili']}{$pk['hongfangbili']}{else}50{/if}%;height: 30px;background-color: #f1785a;color: #ffffff;">
							<div>
								
								
								<span class="d-hanggao-30 ">{if $pk['hongfangtongji']}{$pk['hongfangtongji']}{else}0{/if}</span>
								<span class="d-hanggao-30 d-wenzi-12 d-you-10">位</span>
							</div>
							</a>
						</div>
					</div>
				{else}
					<div class="row d-xia-10">
						<div class="col-md-12 d-buhuanhang d-quxian-0">
							<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}" class="d-yuanjiao-zuo-20-20" style="width:{if $pk['lanfangbili']}{$pk['lanfangbili']}{else}50{/if}%;height: 30px;background-color: #91bed5;color: #ffffff;">
							<div>
								<span class="d-zuo-10 d-hanggao-30">{if $pk['lanfangtongji']}{$pk['lanfangtongji']}{else}0{/if}</span>
								<span class="d-hanggao-30 d-wenzi-12">位</span>
							</div>
							</a>
							<div class="d-wenzi-juzhong" style="width:31px;height: 30px;background-color: #ffffff;color: #ffffff;background-image:url('{HOME_THEME_PATH}web/img/pk.png');">
								<!--img src="{HOME_THEME_PATH}web/img/pk.png"-->
							</div>
							<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}" class="d-yuanjiao-you-20-20 d-wenzi-you" style="width:{if $pk['hongfangbili']}{$pk['hongfangbili']}{else}50{/if}%;height: 30px;background-color: #f1785a;color: #ffffff;">
							<div>
								<span class="d-hanggao-30 ">{if $pk['hongfangtongji']}{$pk['hongfangtongji']}{else}0{/if}</span>
								<span class="d-hanggao-30 d-wenzi-12 d-you-10">位</span>
							</div>
							</a>
						</div>
					</div>
				{/if}
			{/if}
			<!---->
			
			<div class="row ">
				<div class="col-md-12 d-buhuanhang">
					<div class="d-wenzi-12 d-baifen-50 xia-10 a  d-huanhang">
						<div class="d-yuanjiao-20 d-kuan d-buhuanhang d-shang-10 d-a-hei">
							{table table=$pkbiaoku baominghedui=1 cid=$t.id pkfang=1 pkshenhe=0 order=inputtime_desc num=15 return=t2}
								<a href="/index.php?s=huiyuan&c=show&m=index&uid={$t2.uid}" class="d-touxiang-30-0">
									<img src="{dr_avatar($t2.uid)}" class="d-yuanjiao-50"/>
								</a>
							{/table}
						</div>
						
					</div>
					<div class="kuan-5"></div>
					<div class="d-wenzi-12  d-baifen-50 xia-10 a  d-huanhang" >
						<div class="d-yuanjiao-20 d-kuan d-buhuanhang d-shang-10 d-a-hei">
							{table table=$pkbiaoku baominghedui=1 cid=$t.id pkfang=2 pkshenhe=0 order=inputtime_desc num=15 return=t2}
								<a href="/index.php?s=huiyuan&c=show&m=index&uid={$t2.uid}" class="d-touxiang-30-0">
									<img src="{dr_avatar($t2.uid)}" class="d-yuanjiao-50"/>
								</a>
							{/table}
						</div>
					</div>
				</div>
			</div>
			<div class="row d-xia-10 d-wenzi-juzhong d-wenzi-14 d-zitiyanse-hui">
				{if $yipk['pkshenhe']==0}
				    {if $yipk['pkfang']==1 || $yipk['pkfang']==2}
						您已经支持
						{if $yipk['pkfang']==1}<span class="d-zitiyanse-lan">蓝方</span>
						{elseif $yipk['pkfang']==2}
						<span class="d-zitiyanse-hongse">红方</span>
						{/if} 
						{if $yipk['jiangli'] > 0} 奖励<span class="d-zitiyanse-hongse"> {$yipk['jiangli']} </span> {SITE_SCORE} {/if}
						{if $yipk['jianglirmb'] > 0} 奖励<span class="d-zitiyanse-hongse"> {$yipk['jianglirmb']} </span> 金币{/if}
					{/if} 
				{elseif $yipk['pkshenhe']==1}
				您已经支持{if $yipk['pkfang']==1}<span class="d-zitiyanse-lan">蓝方</span>{elseif $yipk['pkfang']==2}<span class="d-zitiyanse-hongse">红方</span>{/if} 
				正在审核中...
				{else}
				感谢您的支持，PK没有通过，期待参与下回PK
				{/if}
			</div>

			
		</div>
	</div>
</div>


<style>
	
	
	.d-baifen-50 {
		width: 50%;
	}
	.d-touxiang-30-0 {
	    margin-right: -10px;
	    /*background-color: #ffffff;*/
	    border-radius: 50px;
	    /*box-shadow: 0 -3px 6px rgb(0 0 0 / 100%);*/
		
	    
	}
	.d-touxiang-30-0 img{
	    max-width: 100%;
	    margin-bottom: 0px;
	    background-color: #ffffff;
		border: 2px solid #ffffff;
		width: 25px;
	}
</style>

<script>

</script>